<!DOCTYPE html>
<html lang="zh-cn">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <title>Bootstrap 101 Template</title>

    <!-- Bootstrap -->
    <link href="css/bootstrap-3.2.0-dist/css/bootstrap.min.css" rel="stylesheet">

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="http://cdn.bootcss.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="http://cdn.bootcss.com/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->
</head>
<body>
<div id="cwidth" class="container">
    <h1>Jsonp test</h1>
    <input id="jurl" type="text" placeholder="url:http://www.19mm.com:8080/web-0.0.1/VipGoodsInfoServ" class="form-control">
    <input id="dataSend" type="text" placeholder="dataSend Like:gid=552&gid=559" class="form-control">
    <input id="callback" type="text" placeholder="callback:guava" class="form-control" value="guava">

    <button id="defualsearch" class="btn" type="button">submit</button>

    <div id="result">

    </div>
</div>
<!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
<script src="http://cdn.bootcss.com/jquery/1.11.1/jquery.min.js"></script>
<!-- Include all compiled plugins (below), or include individual files as needed -->
<script src="css/bootstrap-3.2.0-dist/js/bootstrap.min.js"></script>

<script src="js/guava.js"></script>
<script runat="server" type="text/javascript">
    $(document).ready(function(){
//        jsonpgo("http://www.19mm.com:8080/web-0.0.1/VipGoodsInfoServ",'gid=552&gid=559',"guava");
        $("#defualsearch").click(
                jsonp_click
        );

    });

    function jsonp_click(){
        console.log($("#jurl").val());
        console.log($("#dataSend").val());
//        console.log($("#callback").val());
        jsonpgo($("#jurl").val(),$("#dataSend").val(),$("#callback").val());
    }


</script>

</body>
</html>